package com.sudoku.SudokuV01;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;




public class MyActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button b1= (Button) findViewById (R.id.button1);
        Button b2= (Button) findViewById (R.id.button2);
        final Activity leContext = this;
       b1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent defineIntent = new Intent(leContext, level1List.class);
                defineIntent.putExtra("level",1.0);
                leContext.startActivity(defineIntent);

            }
        });

        b2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent defineIntent = new Intent(leContext, level1List.class);
                defineIntent.putExtra("level",2.0);
                leContext.startActivity(defineIntent);

            }
        });

    }


}
